
class projModel {
  // 倾斜摄影OSGB
  slope() {
    Cesium.tileSize = 256

    var viewer = new Cesium.Viewer('cesiumContainer', {
      selectionIndicator: false, // 是否获取选择周指示器
      useBrowserRecommendedResolution: false, // 是否以浏览器建议的分辨率渲染
      animation: false, // 是否显示动画控件
      baseLayerPicker: false, // 是否显示图层选择控件
      geocoder: false, // 是否显示地名查找控件
      timeline: false, // 是否显示时间线控件
      sceneModePicker: true, // 是否显示投影方式控件
      navigationHelpButton: false, // 是否显示帮助信息控件
      infoBox: false, // 是否显示点击要素之后显示的信息
    })
    viewer.scene.globe.preloadAncestors = false
    viewer.scene.primitives.destroyPrimitives = false
    viewer.scene.globe.depthTesAgainstTerrain = false
    var imageryLayers = viewer.imageryLayers
    Cesium.viewer = viewer

    // 天地图影像
    var tiandituImageLayer = new Cesium.ImageryLayer(
      // 描述初始化选项
      new Cesium.WebMapTileServiceImageryProvider({
        url: 'http://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0' + '&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}' + '&style=default&format=tiles&tk=32242308ce844a52006d05b93404716f',
        layer: 'tdtImg_c',
        style: 'default',
        format: 'tiles',
        tileMatrixSetID: 'c',
        subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
        tilingScheme: new Cesium.WebMercatorTilingScheme(),
        tileMatrixLabels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],
        maximumLevel: 20,
      })
    )
    viewer.imageryLayers.add(tiandituImageLayer)

    // 导入模型
    var tileset = new Cesium.Cesium3DTileset({
      url: '../data/data/dytData.clt/tileset.json',
    })
    viewer.scene.primitives.add(tileset)
    viewer.zoomTo(tileset)
  }
  // 白膜shp
  albugineaSHP() {
    Cesium.tileSize = 256
    Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI5MWVkMjllNy03ZjY4LTQ3YmQtOTgxOC05NGQ5YTU0ZjM5ZGEiLCJpZCI6MzU5Nywic2NvcGVzIjpbImFzciIsImdjIl0sImlhdCI6MTUzODE5MTUyM30.dtS2F3-q2fGoA93N7cFl-LCikK-Rjk7v01WWA-RqCxg'

    // 初始化视图
    var viewer = new Cesium.Viewer("cesiumContainer", {
      terrainProvider: Cesium.createWorldTerrain(),
      selectionIndicator: false,
      useBrowserRecommendedResolution: false,
      animation: false, //是否显示动画控件
      baseLayerPicker: false, //是否显示图层选择控件
      geocoder: false, //是否显示地名查找控件
      timeline: false, //是否显示时间线控件
      sceneModePicker: false, //是否显示投影方式控件
      navigationHelpButton: false, //是否显示帮助信息控件
      infoBox: false, //是否显示点击要素之后显示的信息
      imageryProvider: false,
      fullscreenButton: false,
      homeButton: false,
      shouldAnimate: false
    });

    // 天地图影像
    var tiandituImageLayer = new Cesium.ImageryLayer(
      new Cesium.WebMapTileServiceImageryProvider({
        url: 'http://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0' + '&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}' + '&style=default&format=tiles&tk=440b96d736fad95da7934bc130a2258a',
        layer: 'tdtImg_c',
        style: 'default',
        format: 'tiles',
        tileMatrixSetID: 'c',
        subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
        tilingScheme: new Cesium.WebMercatorTilingScheme(),
        tileMatrixLabels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],
        maximumLevel: 20,
      })
    )
    viewer.imageryLayers.add(tiandituImageLayer)

    var scene = viewer.scene;
    scene.primitives.add(Cesium.createOsmBuildings());

    // 创建云
    Cesium.Math.setRandomNumberSeed(2.5);
    function getRandomNumberInRange(minValue, maxValue) {
      return (
        minValue + Cesium.Math.nextRandomNumber() * (maxValue - minValue)
      );
    }

    var clouds = new Cesium.CloudCollection();

    function createBackLayerClouds() {
      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.6908, 45.496, 300),
        scale: new Cesium.Cartesian2(1500, 250),
        maximumSize: new Cesium.Cartesian3(50, 15, 13),
        slice: 0.3,
      });

      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.72, 45.5, 335),
        scale: new Cesium.Cartesian2(1500, 300),
        maximumSize: new Cesium.Cartesian3(50, 12, 15),
        slice: 0.36,
      });

      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.72, 45.51, 260),
        scale: new Cesium.Cartesian2(2000, 300),
        maximumSize: new Cesium.Cartesian3(50, 12, 15),
        slice: 0.49,
      });

      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.705, 45.52, 250),
        scale: new Cesium.Cartesian2(230, 110),
        maximumSize: new Cesium.Cartesian3(13, 13, 13),
        slice: 0.2,
      });

      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.71, 45.522, 270),
        scale: new Cesium.Cartesian2(1700, 300),
        maximumSize: new Cesium.Cartesian3(50, 12, 15),
        slice: 0.6,
      });

      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.705, 45.525, 250),
        scale: new Cesium.Cartesian2(230, 110),
        maximumSize: new Cesium.Cartesian3(15, 13, 15),
        slice: 0.35,
      });

      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.721, 45.53, 220),
        scale: new Cesium.Cartesian2(1500, 500),
        maximumSize: new Cesium.Cartesian3(30, 20, 17),
        slice: 0.45,
      });
    }

    var long,
      lat,
      height,
      scaleX,
      scaleY,
      aspectRatio,
      cloudHeight,
      depth,
      slice;

    // 在某一区域随机生成云
    function createRandomClouds(
      numClouds,
      startLong,
      stopLong,
      startLat,
      stopLat,
      minHeight,
      maxHeight
    ) {
      var rangeLong = stopLong - startLong;
      var rangeLat = stopLat - startLat;
      for (var i = 0; i < numClouds; i++) {
        long = startLong + getRandomNumberInRange(0, rangeLong);
        lat = startLat + getRandomNumberInRange(0, rangeLat);
        height = getRandomNumberInRange(minHeight, maxHeight);
        scaleX = getRandomNumberInRange(150, 350);
        scaleY = scaleX / 2.0 - getRandomNumberInRange(0, scaleX / 4.0);
        slice = getRandomNumberInRange(0.3, 0.7);
        depth = getRandomNumberInRange(5, 20);
        aspectRatio = getRandomNumberInRange(1.5, 2.1);
        cloudHeight = getRandomNumberInRange(5, 20);
        clouds.add({
          position: Cesium.Cartesian3.fromDegrees(long, lat, height),
          scale: new Cesium.Cartesian2(scaleX, scaleY),
          maximumSize: new Cesium.Cartesian3(
            aspectRatio * cloudHeight,
            cloudHeight,
            depth
          ),
          slice: slice,
        });
      }
    }

    // 定位到云面前
    var scratch = new Cesium.Cartesian3();
    function createFrontLayerClouds() {
      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.666, 45.5126, 97),
        scale: new Cesium.Cartesian2(400, 150),
        maximumSize: new Cesium.Cartesian3(25, 12, 15),
        slice: 0.36,
      });

      clouds.add({
        position: Cesium.Cartesian3.fromDegrees(-122.6665, 45.5262, 76),
        scale: new Cesium.Cartesian2(450, 200),
        maximumSize: new Cesium.Cartesian3(25, 14, 12),
        slice: 0.3,
      });
    }

    createBackLayerClouds();
    createRandomClouds(8, -122.685, -122.67, 45.51, 45.525, 50, 250);
    createFrontLayerClouds();

    scene.primitives.add(clouds);

    var start = Cesium.JulianDate.fromDate(new Date(2021, 7, 21, 12));
    var stop = Cesium.JulianDate.addSeconds(
      start,
      90,
      new Cesium.JulianDate()
    );

    function computeBalloonFlight(long, lat, height0, height1) {
      var property = new Cesium.SampledPositionProperty();
      var time0 = start.clone();
      var time1 = Cesium.JulianDate.addSeconds(
        time0,
        30,
        new Cesium.JulianDate()
      );
      var time2 = Cesium.JulianDate.addSeconds(
        time1,
        15,
        new Cesium.JulianDate()
      );
      var time3 = Cesium.JulianDate.addSeconds(
        time2,
        30,
        new Cesium.JulianDate()
      );
      var time4 = Cesium.JulianDate.addSeconds(
        time3,
        15,
        new Cesium.JulianDate()
      );

      var position0 = Cesium.Cartesian3.fromDegrees(long, lat, height0);
      var position1 = Cesium.Cartesian3.fromDegrees(long, lat, height1);

      property.addSample(time0, position0);
      property.addSample(time1, position1);
      property.addSample(time2, position1);
      property.addSample(time3, position0);
      property.addSample(time4, position0);

      return property;
    }

    viewer.clock.startTime = start.clone();
    viewer.clock.stopTime = stop.clone();
    viewer.clock.currentTime = start.clone();
    viewer.clock.clockRange = Cesium.ClockRange.LOOP_STOP;
    viewer.clock.multiplier = 1.0;

    // 飞行到目的地
    scene.camera.flyTo({
      destination: Cesium.Cartesian3.fromDegrees(-122.6515, 45.5252, 525),
      orientation: {
        heading: Cesium.Math.toRadians(-115),
        pitch: Cesium.Math.toRadians(-12),
        roll: 0.0,
      },
    });

    scene.fog.density = 1.15e-4;
  }

  // 白膜shp纹理渲染
  alTextSHP() {
    Cesium.tileSize = 256

    var viewer = new Cesium.Viewer('cesiumContainer', {
      selectionIndicator: false, // 是否获取选择周指示器
      useBrowserRecommendedResolution: false, // 是否以浏览器建议的分辨率渲染
      animation: false, // 是否显示动画控件
      baseLayerPicker: false, // 是否显示图层选择控件
      geocoder: false, // 是否显示地名查找控件
      timeline: false, // 是否显示时间线控件
      sceneModePicker: true, // 是否显示投影方式控件
      navigationHelpButton: false, // 是否显示帮助信息控件
      infoBox: false, // 是否显示点击要素之后显示的信息
    })
    viewer.scene.globe.preloadAncestors = false
    viewer.scene.primitives.destroyPrimitives = false
    viewer.scene.globe.depthTesAgainstTerrain = false
    var imageryLayers = viewer.imageryLayers
    Cesium.viewer = viewer

    // 天地图影像
    var tiandituImageLayer = new Cesium.ImageryLayer(
      // 描述初始化选项
      new Cesium.WebMapTileServiceImageryProvider({
        url: 'http://t0.tianditu.com/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=7711a24780452f03bb7c02fba98183b9',
        layer: 'img',
        style: 'default',
        format: 'tiles',
        tileMatrixSetID: 'w',
        credit: new Cesium.Credit('天地图全球影像服务'),
        // maximumLevel:7,
        show: false,
      })
    )
    viewer.imageryLayers.add(tiandituImageLayer)
    //开启深度检测
    viewer.scene.globe.depthTestAgainstTerrain = false;
    //去除logo信息
    viewer.cesiumWidget.creditContainer.style.display = "none";//去cesium logo水印 或 css
    //2加载模型
    var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
      url: '../data/shp/xian/xian/tileset.json'
    }));

    //根据自定义属性设置颜色
    tileset.style = new Cesium.Cesium3DTileStyle({
      color: {
        conditions: [
          ['${floor} > 20', 'color("cyan", 1)'],
          ['${floor} > 10', 'rgba(150, 150, 150, 1)'],
          ['true', 'color("blue")']
        ]
      }
    });

    tileset.readyPromise.then(function () {
      //开启影子模式
      viewer.shadows = true;
      var boundingSphere = tileset.boundingSphere;
      viewer.camera.viewBoundingSphere(boundingSphere, new Cesium.HeadingPitchRange(0.0, -0.5, boundingSphere.radius));
      viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
    }).otherwise(function (error) {
      throw (error);
    });
  }
  // 人工建模
  custoModel() {
    Cesium.tileSize = 256

    var viewer = new Cesium.Viewer('cesiumContainer', {
      selectionIndicator: false, // 是否获取选择周指示器
      useBrowserRecommendedResolution: false, // 是否以浏览器建议的分辨率渲染
      animation: false, // 是否显示动画控件
      baseLayerPicker: false, // 是否显示图层选择控件
      geocoder: false, // 是否显示地名查找控件
      timeline: false, // 是否显示时间线控件
      sceneModePicker: true, // 是否显示投影方式控件
      navigationHelpButton: false, // 是否显示帮助信息控件
      infoBox: false, // 是否显示点击要素之后显示的信息
    })

    // 天地图影像
    var tiandituImageLayer = new Cesium.ImageryLayer(
      // 描述初始化选项
      new Cesium.WebMapTileServiceImageryProvider({
        url: 'http://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0' + '&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}' + '&style=default&format=tiles&tk=32242308ce844a52006d05b93404716f',
        layer: 'tdtImg_c',
        style: 'default',
        format: 'tiles',
        tileMatrixSetID: 'c',
        subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
        tilingScheme: new Cesium.WebMercatorTilingScheme(),
        tileMatrixLabels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],
        maximumLevel: 20,
      })
    )
    viewer.imageryLayers.add(tiandituImageLayer)

    function createModel(url, height) {
      viewer.entities.removeAll();

      var position = Cesium.Cartesian3.fromDegrees(
        -163.0744619,
        44.0503706,
        height
      );
      //弧度的航向分量。
      var heading = Cesium.Math.toRadians(135);
      //弧度的螺距分量。
      var pitch = 0;
      //滚动分量（以弧度为单位）
      var roll = 0;
      //HeadingPitchRoll旋转表示为航向，俯仰和滚动。围绕Z轴。节距是绕负y轴的旋转。滚动是关于正x轴。
      var hpr = new Cesium.HeadingPitchRoll(heading, pitch, roll);
      var orientation = Cesium.Transforms.headingPitchRollQuaternion(
        position,
        hpr
      );

      var entity = viewer.entities.add({
        name: url,
        position: position,
        orientation: orientation,
        model: {
          uri: url,
          //不管缩放如何，模型的最小最小像素大小。
          minimumPixelSize: 128,
          //模型的最大比例尺大小。 minimumPixelSize的上限。
          maximumScale: 20000,
        },
      });
      // 获取或设置相机当前正在跟踪的Entity实例。
      viewer.trackedEntity = entity;
    }
    createModel("虹馆.glb", 1000);
  }

  // 点云数据加载
  pointCloud() {
    Cesium.tileSize = 256

    var viewer = new Cesium.Viewer('cesiumContainer', {
      selectionIndicator: false, // 是否获取选择周指示器
      useBrowserRecommendedResolution: false, // 是否以浏览器建议的分辨率渲染
      animation: false, // 是否显示动画控件
      baseLayerPicker: false, // 是否显示图层选择控件
      geocoder: false, // 是否显示地名查找控件
      timeline: false, // 是否显示时间线控件
      sceneModePicker: true, // 是否显示投影方式控件
      navigationHelpButton: false, // 是否显示帮助信息控件
      infoBox: false, // 是否显示点击要素之后显示的信息
    })

    // 天地图影像
    var tiandituImageLayer = new Cesium.ImageryLayer(
      // 描述初始化选项
      new Cesium.WebMapTileServiceImageryProvider({
        url: 'http://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0' + '&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}' + '&style=default&format=tiles&tk=32242308ce844a52006d05b93404716f',
        layer: 'tdtImg_c',
        style: 'default',
        format: 'tiles',
        tileMatrixSetID: 'c',
        subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
        tilingScheme: new Cesium.WebMercatorTilingScheme(),
        tileMatrixLabels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],
        maximumLevel: 20,
      })
    )
    viewer.imageryLayers.add(tiandituImageLayer)

    var tileset = new Cesium.Cesium3DTileset({
      url: Cesium.IonResource.fromAssetId(16421),
    });
    viewer.scene.primitives.add(tileset);

    // 设置视图
    viewer.scene.camera.setView({
      destination: new Cesium.Cartesian3(
        4401744.644145314,
        225051.41078911052,
        4595420.374784433
      ),
      orientation: new Cesium.HeadingPitchRoll(
        5.646733805039757,
        -0.276607153839886,
        6.281110875400085
      ),
    });
  }
  // 贴地矢量数据绘制
  stickVector() {
    Cesium.tileSize = 256
    Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwMzYzM2JiMi1mZDg0LTRmZmEtODYzNy02YjA2NDZmMmU5YTYiLCJpZCI6MjU5LCJhc3NldHMiOnsiMSI6eyJ0eXBlIjoiVEVSUkFJTiIsImV4dGVuc2lvbnMiOlt0cnVlLHRydWUsdHJ1ZV0sInB1bGxBcGFydFRlcnJhaW4iOmZhbHNlfX0sInNyYyI6ImQ2ZjQ1N2I2LTIxZTQtNDg4Ni05MjhkLTVhM2QyMGY4YmI1YiIsImlhdCI6MTYzNzgzMDg5MSwiZXhwIjoxNjM3ODM0NDkxfQ.bOsm3KagdsGeVlEyzX674qcehlsOpyRzKzdRFq7wzGM'

    var viewer = new Cesium.Viewer('cesiumContainer', {
      selectionIndicator: false, // 是否获取选择周指示器
      useBrowserRecommendedResolution: false, // 是否以浏览器建议的分辨率渲染
      animation: false, // 是否显示动画控件
      baseLayerPicker: false, // 是否显示图层选择控件
      geocoder: false, // 是否显示地名查找控件
      timeline: false, // 是否显示时间线控件
      sceneModePicker: true, // 是否显示投影方式控件
      navigationHelpButton: false, // 是否显示帮助信息控件
      infoBox: false, // 是否显示点击要素之后显示的信息
    })
    viewer.scene.globe.preloadAncestors = false
    viewer.scene.primitives.destroyPrimitives = false
    viewer.scene.globe.depthTesAgainstTerrain = false
    var imageryLayers = viewer.imageryLayers
    Cesium.viewer = viewer

    // 天地图影像
    var tiandituImageLayer = new Cesium.ImageryLayer(
      // 描述初始化选项
      new Cesium.WebMapTileServiceImageryProvider({
        url: 'http://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0' + '&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}' + '&style=default&format=tiles&tk=32242308ce844a52006d05b93404716f',
        layer: 'tdtImg_c',
        style: 'default',
        format: 'tiles',
        tileMatrixSetID: 'c',
        subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
        tilingScheme: new Cesium.WebMercatorTilingScheme(),
        tileMatrixLabels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],
        maximumLevel: 20,
      })
    )
    viewer.imageryLayers.add(tiandituImageLayer)

    var Sandcastle
    //Example 1: Load with default styling.
    viewer.dataSources.add(
      Cesium.GeoJsonDataSource.load(
        "../../libs/1.871/Apps/SampleData/ne_10m_us_states.topojson",
        {
          stroke: Cesium.Color.HOTPINK,
          fill: Cesium.Color.PINK.withAlpha(0.5),
          strokeWidth: 3,
        }
      )
    );
  }

  // 单体化展示
  monomer() {
    Cesium.tileSize = 256

    var viewer = new Cesium.Viewer('cesiumContainer', {
      selectionIndicator: false, // 是否获取选择周指示器
      useBrowserRecommendedResolution: false, // 是否以浏览器建议的分辨率渲染
      animation: false, // 是否显示动画控件
      baseLayerPicker: false, // 是否显示图层选择控件
      geocoder: false, // 是否显示地名查找控件
      timeline: false, // 是否显示时间线控件
      sceneModePicker: true, // 是否显示投影方式控件
      navigationHelpButton: false, // 是否显示帮助信息控件
      infoBox: false, // 是否显示点击要素之后显示的信息
    })

    // 天地图影像
    var tiandituImageLayer = new Cesium.ImageryLayer(
      // 描述初始化选项
      new Cesium.WebMapTileServiceImageryProvider({
        url: 'http://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0' + '&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}' + '&style=default&format=tiles&tk=32242308ce844a52006d05b93404716f',
        layer: 'tdtImg_c',
        style: 'default',
        format: 'tiles',
        tileMatrixSetID: 'c',
        subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
        tilingScheme: new Cesium.WebMercatorTilingScheme(),
        tileMatrixLabels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'],
        maximumLevel: 20,
      })
    )
    viewer.imageryLayers.add(tiandituImageLayer)

    // 导入模型
    var tileset = new Cesium.Cesium3DTileset({
      url: Cesium.IonResource.fromAssetId(40866),
    });
    viewer.scene.primitives.add(tileset);
    viewer.zoomTo(tileset);

    var classifcationTilesetUrl =
      "../../libs/1.871/Apps/SampleData/Cesium3DTiles/Classification/Photogrammetry/tileset.json";

    var classificationTileset = new Cesium.Cesium3DTileset({
      url: classifcationTilesetUrl, // 路径
      classificationType: Cesium.ClassificationType.CESIUM_3D_TILE, // 单体化
    });
    classificationTileset.style = new Cesium.Cesium3DTileStyle({
      color: "rgba(255, 0, 0, 0.5)",
    });
    viewer.scene.primitives.add(classificationTileset);
  }
}